import { BaseEntity } from '@cool-midway/core';
import { Column, Entity } from 'typeorm';

/**
 * business模块-图库
 */
@Entity('business_gallery')
export class BusinessGalleryEntity extends BaseEntity {
  @Column({ comment: '用户ID' })
  userId: number;

  @Column({ comment: '产品编号', nullable: true, length: 50 })
  productNo: string;

  @Column({ comment: '主要图片', length: 255 })
  mainImage: string;

  @Column({ comment: '附加图片', nullable: true, type: 'json' })
  additionalImages: string[];

  @Column({ comment: '状态 0-禁用 1-启用', default: 1 })
  status: number;

  @Column({ comment: '备注信息', nullable: true })
  remark: string;
}